Machine Translation

Instructions

This project requires GPU acceleration to run efficiently. Please refer to the instructions below to complete the project.

Open the NLP Machine Translation Workspace lesson and complete the project.

  1. Follow the Udacity instructions to launch an EC2 GPU instance . All of the remaining instructions should be executed in the EC2 instance.

  2. Clone the project GitHub repository, and navigate to the downloaded folder:

 git clone https://github.com/udacity/aind2-nlp-capstone
 cd aind2-nlp-capstone
  1. Start Jupyter: jupyter notebook --ip=0.0.0.0 --no-browser

  2. Look at the output in the window, and find the line that looks like the following:

Copy/paste this URL into your browser when you connect for the first time to login with a token: 
http://0.0.0.0:8888/?token=3156e...
  1. Copy and paste the complete URL into the address bar of a web browser (Firefox, Safari, Chrome, etc). Before navigating to the URL, replace 0.0.0.0 in the URL with the "IPv4 Public IP" address from the EC2 Dashboard. Press Enter.

  2. Click on machine_translation.ipynb. Follow the instructions in the notebook.

  1. Clone the repository, and navigate to the downloaded folder.
 git clone https://github.com/udacity/aind2-nlp-capstone
 cd aind2-nlp-capstone
  1. Create (and activate) a new environment with Python 3.5 and the numpy package.
conda create --name aind-nlp-capstone python=3.5 numpy
source activate aind-nlp-capstone
  1. Install/Update TensorFlow.
pip install tensorflow==1.1 -U
  1. Install/Update Keras.
pip install keras -U
  1. Switch Keras backend to TensorFlow.
KERAS_BACKEND=tensorflow python -c "from keras import backend"
  1. Start Jupyter: jupyter notebook --no-browser
  2. Look at the output in the window, and find the line that looks like the following:
Copy/paste this URL into your browser when you connect for the first time to login with a token: 
http://0.0.0.0:8888/?token=3156e...
  1. Copy and paste the complete URL into the address bar of a web browser (Firefox, Safari, Chrome, etc). Press Enter.

  2. Click on machine_translation.ipynb. Follow the instructions in the notebook.

Submission

Follow the instructions in the notebook to submit your project.